/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Interface.Fisica;

/**
 *
 * @author Administrador
 */
public class Vetor {
    public Vetor(double modulo,double teta){
        this.modulo = modulo;
        this.teta = teta;
    }

    public double decompoemX(){
        return (double) (modulo*Math.cos(teta));
    }

    public double decompoemY(){
        return (double) (modulo*Math.sin(teta));
    }

    public double getModulo(){
        return modulo;
    }

    public double getTeta(){
        return teta;
    }

    public void setModulo(double modulo){
        this.modulo = modulo;
    }

    public void setTeta(double teta){
        this.teta = teta;
    }

    private double modulo;
    private double teta;
}
